try:
    from tkinter import *
except ImportError:
    from Tkinter import *


class NewRoot(Tk):
    def __init__(self):
        Tk.__init__(self)
        self.title('Spam 2.0')
        self.attributes('-alpha', 0.1)
        self.geometry('200x100-0+100')
        self.iconify()
        self.lower()


class MyMain(Toplevel):
    def __init__(self, master):
        Toplevel.__init__(self, master)
        # self.overrideredirect(1)
        self.attributes('-topmost', 0)
        self.geometry('200x200+400+100')
        self.bind('<ButtonRelease-3>', self.on_close)  #right-click to get out
        self.cap = Label(self, text='Caption')
        self.cap.pack()
        self.resizable(0, 0)

    def on_close(self, event):
        print('on_close')
        print(self.geometry())
        print(self.wm_geometry())
        print(self.winfo_geometry())
        self.master.destroy()


if __name__ == '__main__':

    root = NewRoot()
    app = MyMain(root)
    app.mainloop()